Skip to main content

About

Insight Library

Insight Library allows to browse through all available Insight Definition Templates which serve as a basis for creating new Insight Definitions. Each Template consists from:

  • summary and short description, description of Triggering and Audience condition and proposed content description
  • Suggested classification of Insight Definition goal and categories
  • Predefined Triggering and Audience conditions
  • Visualizations showing exemplary end user interface with the message

Insight Definition Template preview

After reviewing Insight Definition Template users can start creating their own Insight Definitions based on selected template. Instead of starting from scratch their Insight Definition draft will be already prepopulated with Triggering and Audience condition rules. User can then adjust all properties of the new Insight Definition and define it's content in the same way as when creating an Insight Definition from scratch.

The classification of goals and categories in Insight Library is just a suggestion and can differ from the Insight Goals and Categories hierarchy defined in the Insight Factory deployment.

The collection of available Insight Definition Templates can grow over time due to:

  • new integrations to Insights Factory deployment, for instance new triggering events configured or new Repositories added
  • new templates delivered by Meniga Product Experts based on customers demand
  • new templates developed internally by the Bank Administrators
note

If Insight Definition Template requires triggering event that has not been integrated with Insight Factory deployment the Create from template option will be inactive.

Managing Insight Definition Templates

New Insight Definition Templates can be uploaded through the Insight Library page using JSON files with a following structure:

[
{
"name":"Overdraft risk",
"description":"Notify the customer when there's an upcoming transaction in the next couple of days that could make him go into overdraft and offer him a short-term loan to cover for the potential money shortage",
"shortDescription":"Warn customer from going overdraft",
"contentDescription":"Heads up! There is an upcoming transaction due in {{Upcoming.DaysDue}} days and it seems you might not have enough money for it. Consider taking a short-term loan to cover for it. See loan offer",
"triggerDescription":"Upcoming transaction. Transaction due in less than 7 days. Expected left-to-spend less than €100",
"audienceDescription":"Customers who: don't have saving products, or have no savings, don't have a loan, are eligible to get one, typically have high variance in expenses",
"categoryName":"Cashflow",
"goalName":"Care",
"triggeringEventIdentifier":"UpcomingPaymentDueEvent",
"audienceConditionUi":"{\"tree\":{\"id\":\"a9889899-cdef-4012-b456-7184615d856c\",\"type\":\"group\",\"children1\":{\"b8b9a999-89ab-4cde-b012-3184615d88f9\":{\"type\":\"rule\",\"properties\":{\"field\":\"LoanRepository_IsPersonEligible\",\"operator\":\"equal\",\"value\":[\"true\"],\"valueSrc\":[\"value\"],\"valueError\":[null],\"valueType\":[\"bool\"]}}}},\"parametersDictionary\":[{\"key\":{\"id\":\"b8b9a999-89ab-4cde-b012-3184615d88f9\",\"groupId\":\"a9889899-cdef-4012-b456-7184615d856c\"},\"value\":{\"leftFunc\":{\"func\":\"LoanRepository_IsPersonEligible\",\"args\":{},\"returnType\":\"bool\"}}}]}",
"triggerConditionUi": "{\"tree\": {\"id\": \"bb9a88bb-4567-489a-bcde-f184615949bb\",\"type\": \"group\", \"children1\": { \"ba9bb8bb-0123-4456-b89a-b184615951d7\": { \"type\": \"rule\", \"properties\": { \"field\": \"Amount\", \"operator\": \"greater_or_equal\", \"value\": [\"20\"],\"valueSrc\": [\"value\"],\"valueError\": [null],\"valueType\": [\"Money\"]}}}},\"parametersDictionary\": []}",
"detailsPreviewImage":"/9j/4AAQSkZJRgABAQEA2ADYAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCALLAW4DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdh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/IVsU6OJ5N3lozbRuOBnA9aPrlf+YHk2BW9Nfj/AJmL/YcX/PV/yFH9hxf89X/IVuQQS3EmyCNnfGcKM8VY/su9/wCfaT8qaxeIe0iZZTl0XaUEvn/wTm/7Di/56v8AkKil0NhzDMCewYY/Wup/su9PS2kP0FU2BViGBBBwQe1NYzERd2yXk2X1VaMF8m/8ybwv8QvEHha4jgvXe+sRwYZ2yQP9h+o+nI9q+gfC/iKw8R6Wl9pku+NuGVuGjburDsa+c7iCO4iMcq5U/pTPBmv3PgrxMkpZmspCEuEHR4/XHqOo/Ed69LDYlYhWekj5jNMqll7U4u8H969T6qVs08GqVrcJPCksTh43UMrA5BB6EVbU1ueWPooooAKaxp1RyGgCGVq8N/aD1JmuNK01W+QK1w6+pPyr/Jvzr2ydsV89fG+TzPHFqp6Laxj/AMfc/wBaqO9yZK+ncyLOEW9tHGP4Rz9e9TUUV81KTk22fqdOCpxUI7LQ63TGsX0nRJtQtYfKW+khkaOL5nUIhG7HLcnkVJrFtZvpmn3V4YJ5HuJYy2mw+VvQKCMAqASCeuOhxnIrlYby5hWJYZ5UET+agViNrcfMPQ8D8qnn1jUZ7xLqa9uHuIxtSQucqPQenU1t7WNrNHC8JPnUovv19fLz19Dp9Mhiil8PWMdhb3FrqKBriR4gzsS5VsP1XYB2x6mq2kmK3sbk3lpZnSU82MTNEDLcvghQjHkYODkYAHXk1z9vqt/bWklrb3lxFbyZ3Rq5CnPXj3qW313VLa1W2g1C6jgUELGshCgHrxQqsdCZYSo72a18356..."
},
...
]
AttributeTypeIs requiredDescription
namenvarchar(128)yesName of the insight definition template
descriptionnvarchar(512)yesDescription of the insight definition template
shortDescriptionnvarchar(256)yesShort description of the insight definition template
contentDescriptionnvarchar(512)yesDescription of the insight definition template content
triggerDescriptionnvarchar(512)yesDescription of the insight definition triggering condition
audienceDescriptionnvarchar(512)yesDescription of the insight definition template audience condition
triggerConditionUinvarchar(max)noUI representation of Trigger condition filters
audienceConditionUinvarchar(max)yesUI representation of Audience condition filters
triggeringEventIdentifiernvarchar(512)noEvent type identifier used for determining event type which the insight definition template is related to
detailsPreviewImagenvarchar(max)yesBase64 encoded preview image of the insight definition template to be shown on the template's details page
listPreviewImagenvarchar(max)yesBase64 encoded preview image of the insight definition template to be shown on a templates list. Images displayed on the list have a fixed height of 200px and will be scaled up or down to fit this value.
categoryNamenvarchar(128)yesProposed category name for the Insight Definition
goalNamenvarchar(128)yesProposed goal name for the Insight Definition

If any template in the uploaded file is invalid (for instance due to incorrect structure) then none Insight Definition Template will be uploaded.

Data model

Uploaded Insight Definition Templates end up in the [insightsfactory].insight_definition_templates database table.

Insight Definition Template data model

AttributeTypeIs requiredDescription
idbigintyesNumerical identifier
namenvarchar(128)yesName of the insight definition template
descriptionnvarchar(512)yesDescription of the insight definition template
short_descriptionnvarchar(256)yesShort description of the insight definition template
content_descriptionnvarchar(512)yesDescription of the insight definition template content
trigger_descriptionnvarchar(512)yesDescription of the insight definition triggering condition
audience_descriptionnvarchar(512)yesDescription of the insight definition template audience condition
trigger_condition_uinvarchar(max)noUI representation of Trigger condition filters
audience_condition_uinvarchar(max)yesUI representation of Audience condition filters
triggering_event_identifiernvarchar(512)noEvent type identifier used for determining event type which the insight definition template is related to
details_preview_imagenvarchar(max)yesBase64 encoded preview image of the insight definition template to be shown on the template's details page
list_preview_imagenvarchar(max)yesBase64 encoded preview image of the insight definition template to be shown on the page with list of templates
category_namenvarchar(128)yesProposed category name for the Insight Definition
goal_namenvarchar(128)yesProposed goal name for the Insight Definition
versiontimestampyesRow version used for optimistic concurrency
created_utcdatetime2(7)yesAudit column - the date of entity creation (utc)
modified_utcdatetime2(7)noAudit column - the date of entity last modification (utc)
created_bynvarchar(256)yesAudit column - the creator of entity
modified_bynvarchar(256)noAudit column - the author of last update performed on entity
is_deletedbityesTrue if the insight definition template is deleted

Modification

Modification of Insight Definition Templates is not allowed. No longer needed templates can be soft deleted from the Insight Library using the following API request:

DELETE /admin/insights/v1/templates
curl -X 'DELETE' \
'admin/insights/v1/templates?ids=1&ids=2&ids=99' \
-H 'Authorization: Bearer {token}' \
-H 'accept: */*'

Where ids are the numerical identifiers of Insight Definition Templates we wish to remove.